<!--页头-->
<ion-header>
    <ion-navbar>
        <ion-title>
            已完成检查项
        </ion-title>
    </ion-navbar>
</ion-header>


<ion-content style="position: relative">
    <div *ngIf="finishList.length !==0">
        <ion-list *ngFor="let level of finishList let indx=index">

            <ion-card>
                 <ion-item class="activatedColor">
                     <ion-label class="eleInfo" >{{level.planName}}</ion-label>
 
                     <ion-icon name="ios-arrow-down" item-right *ngIf="temp=='show'+indx" (click)="accordion(indx,'hihe')"></ion-icon>
                     <ion-icon name="ios-arrow-forward" item-right *ngIf="temp!='show'+indx" (click)="accordion(indx,'show')"></ion-icon>
                 </ion-item>
                <ion-item>
                     <ion-label class="eleInfo" >设备Id:{{level.elevatorId}}</ion-label>
                </ion-item>
             </ion-card>
 
             <ng-container *ngIf="temp=='show'+indx">
                 <ion-card *ngFor="let item of level.project;let i= index">
                           <ion-card-content >{{item.checkItemName}}</ion-card-content>
 
                           <ion-card-content >基本说明：{{item.ext2}}</ion-card-content>
 
                     <ion-item class="activatedItemColor">
                          <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.checkRecord"  value="0" ><label>&nbsp;&nbsp;是 &nbsp;&nbsp;</label>
                          <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.checkRecord"  value="1" ><label>&nbsp;&nbsp;否 &nbsp;&nbsp;</label>
                          <input class="inputClass" type="radio" name={{i}}  [(ngModel)]="item.checkRecord"  value="2" ><label>&nbsp;&nbsp;无此项 &nbsp;&nbsp;</label>
                     </ion-item>
                     <div *ngIf="item.checkRecord=='1'">
                         <div class="area">
                             <ion-textarea class="placeholderCss" required type="text" placeholder="输入其他要补充的内容" rows="2" [(ngModel)]="item.remarkes" >{{item.remarkes}}</ion-textarea>
                         </div>
                         <div class="camera">
                             <img src="assets/icon/remark_camera.png" (click)="doCamera(i,'c')">
                             <img *ngFor="let pic of item.result.picUrl" (click)="onHold(i,pic)" src="{{whaturl(pic)}}" />
                         </div>
                     </div>
                 </ion-card>
             </ng-container>
 
 
     </ion-list>
    </div>
    <data-img-show *ngIf="finishList.length ===0"></data-img-show>
</ion-content>


